# -*- coding:utf-8 -*-
import xadmin

from .models import UserFavorite, UserConcern


class UserFavoriteAdmin(object):
    list_display = ['user', 'menu', 'add_time']
    search_fields = ['user', 'menu', 'add_time']
    list_filter = ['user', 'menu', 'add_time']


class UserConcernAdmin(object):
    list_display = ['user_id', 'to_user', 'add_time']
    search_fields = ['user_id', 'to_user', 'add_time']
    list_filter = ['user_id', 'to_user', 'add_time']


xadmin.site.register(UserFavorite, UserFavoriteAdmin)
xadmin.site.register(UserConcern, UserConcernAdmin)